﻿// (c) Copyright Mikhail Dikov.
// (c) Copyright Rajkumar Chityal.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AjaxControlToolkit;
using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls.WebParts;

[assembly: System.Web.UI.WebResource("WebPartExtenders.SplitterWebPartExtender.SplitterWebPartExtender.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("WebPartExtenders.SplitterWebPartExtender.SplitterWebPartExtender.css", "text/css", PerformSubstitution=true) ]
[assembly: System.Web.UI.WebResource("WebPartExtenders.SplitterWebPartExtender.Grippy.gif", "image/gif")]

namespace WebPartExtenders
{

    [ClientScriptResource("WebPartExtenders.SplitterWebPartExtender", "WebPartExtenders.SplitterWebPartExtender.SplitterWebPartExtender.js")]
    [ClientCssResource("WebPartExtenders.SplitterWebPartExtender.SplitterWebPartExtender.css")]
    [TargetControlType(typeof(System.Web.UI.WebControls.WebParts.WebPartZone))]
    [System.Drawing.ToolboxBitmap(typeof(SplitterWebPartExtender), "WebPartExtenders.SplitterWebPartExtender.Splitter.ico")]
    [Designer("WebPartExtenders.SplitterWebPartDesigner, WebPartExtenders")]
    public class SplitterWebPartExtender: ExtenderControlBase
    {
        // TargetControlID is the ID of the left web part zone.

        /// <summary>
        /// ID of the right web part zone.
        /// </summary>
        [ExtenderControlProperty]
        [DefaultValue("")]
        [IDReferenceProperty(typeof(WebPartZone))]
        public string RightZoneID
        {
            get { return GetPropertyValue("RightZoneID", ""); }
            set { SetPropertyValue("RightZoneID", value); }
        }

    }
}
